import App from '../App'
import Home from '../page/Home'
import Hotstop from '../page/Science/Hotstop'
import Topic from '../page/Science/Topic'
import Login from '../page/Login'

const routes = [
    {
        from: "/",
        to: "/login"
    },
    {
        path: '/app',
        component: App,
    },
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: '/home/hotstop',
                component: Hotstop,
                meta: {
                    author: ["管理员", "用户"],
                    name: '热点'
                }
            },
            {
                path: '/home/topic',
                component: Topic,
                meta: {
                    author: ["管理员", "用户"],
                    name: '话题'
                }
            },
        ]
    },
    {
        path: '/login',
        component: Login,
    }
]
export default routes